Skip to content

fix: show move cursor when dragging in overflow popup - #1906

Open
mhduiy wants to merge 1 commit into
linuxdeepin:develop/2500u3from
mhduiy:agent/bugfix/384773
Open

mhduiy wants to merge 1 commit into
linuxdeepin:develop/2500u3from
mhduiy:agent/bugfix/384773

Conversation

@mhduiy

@mhduiy mhduiy commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Root Cause Analysis

The overflow popup DropArea in TaskOverflowButton.qml only had an onDropped handler but was missing onEntered. When dragging an app icon inside the overflow popup, AppItem.qml configures Drag.supportedActions: Qt.CopyAction | Qt.MoveAction, and without an onEntered handler calling drag.accept(Qt.MoveAction), the dropAction stays at the platform default CopyAction. This causes the cursor to display a copy cursor (arrow with "+") instead of a move cursor (plain arrow). The main taskbar DropArea in TaskManager.qml has a complete onEntered handler and works correctly, serving as a positive reference.

Fix

Added an onEntered handler to the DropArea in TaskOverflowButton.qml that calls drag.accept(Qt.MoveAction) when the drag source is overflow-popup. The condition matches the existing onDropped handler, and the pattern aligns with the main taskbar DropArea in TaskManager.qml.

Change Safety Assessment

Code Safety

  • Risk Level: Low
  • New QML signal handler only; no signature changes, no public API changes, no reversion of historical fixes
  • Target lines (260-267) were introduced by cf0348bf (original feature commit), not a bug fix; subsequent fixes (BUG-384767, BUG-384405) touch different code segments

Business Impact Scope

Affected: overflow popup drag-and-drop cursor display in the DDE taskbar. When users long-press and drag an app icon within the overflow popup, the cursor now shows a move cursor instead of a copy cursor. Drag-drop behavior (item reordering, residence preservation) is unchanged. External drags into the overflow popup (non-overflow-popup sources) are unaffected.

Verification Suggestion

  1. Drag an app icon inside the overflow popup and verify the cursor shows a move cursor (plain arrow) instead of a copy cursor
  2. Drag an app icon from the taskbar into the overflow popup and verify the cursor and drop behavior are unchanged
  3. Drag an app icon out of the overflow popup and verify residence is preserved

根因分析

溢出弹窗 TaskOverflowButton.qml 的 DropArea 仅有 onDropped 处理器,缺少 onEntered。AppItem.qml 配置了 Drag.supportedActions: Qt.CopyAction | Qt.MoveAction,拖拽进入溢出弹窗时未调用 drag.accept(Qt.MoveAction),dropAction 保持平台默认的 CopyAction,光标显示为复制光标(箭头带"+"号)而非移动光标。主任务栏 DropArea(TaskManager.qml)有完整的 onEntered 处理器,功能正常,作为正面对照。

修复方案

在 TaskOverflowButton.qml 的 DropArea 添加 onEntered 处理器,当拖拽源为 overflow-popup 时调用 drag.accept(Qt.MoveAction)。条件判断与现有 onDropped 一致,处理模式与主任务栏 DropArea 对齐。

改动安全评估

代码安全评估

  • 风险等级: 低风险
  • 仅新增 QML 信号处理器,不改签名、不改公开接口、不撤销历史修复
  • 目标行(260-267)由 cf0348bf(原始功能提交)引入,非修复产物;后续修复(BUG-384767、BUG-384405)改的是不同代码段

业务影响范围

影响范围:DDE 任务栏溢出弹窗拖拽光标显示。用户在溢出弹窗内长按拖拽应用图标时,光标从复制光标改为移动光标。拖放行为(图标重排、驻留属性)不变。从任务栏拖入溢出弹窗的外部拖拽不受影响。

验证建议

  1. 在溢出弹窗内拖拽应用图标,确认光标显示为移动光标而非复制光标
  2. 从任务栏拖拽应用图标到溢出弹窗,确认光标和拖放行为无变化
  3. 从溢出弹窗拖出应用图标,确认驻留属性保持不变

Summary by Sourcery

Bug Fixes:

  • Show the move cursor when dragging items within the overflow popup.

@deepin-ci-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: mhduiy

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@sourcery-ai

sourcery-ai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

UI

Add an onEntered handler that rejects overflow-popup drags, showing a forbidden cursor when dragging items over the overflow area.

  • panels/dock/taskmanager/package/TaskOverflowButton.qml L263-266

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've found 1 issue

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path="panels/dock/taskmanager/package/TaskOverflowButton.qml" line_range="265" />
<code_context>
                     keys: ["text/x-dde-dock-dnd-appid", "text/x-dde-dock-dnd-folder"]
+                    onEntered: function(drag) {
+                        if (drag.getDataAsString("text/x-dde-dock-dnd-source") === "overflow-popup")
+                            drag.accept(Qt.MoveAction)
+                    }
                     onDropped: function(drop) {
</code_context>
<issue_to_address>
**Move cursor remains copy cursor**

When an `overflow-popup` drag enters the popup DropArea, `DragEvent` does not provide `accept(Qt.MoveAction)`, so the handler raises a QML runtime error before accepting the drag and the cursor remains in the default copy state.

Set the DragEvent's drop action to `Qt.MoveAction` with its supported API, then accept the event.
</issue_to_address>

Sourcery is free for open source - if you like our reviews please consider sharing them ✨

@deepin-ci-robot

deepin-ci-robot commented Nov 30, 2026 •

Copy link
Copy Markdown

⚠️ OBS CI 构建警告日志 (Commit: afdbf2cf)

提示:以下为 OBS CI 构建中 Lintian 检测到的警告信息,默认折叠,点击展开查看详情。完整日志请参阅对应构建状态链接。

deepin_develop / aarch64 (Lintian 警告: 15 条)
[  996s] W: dde-shell: desktop-command-not-in-package bin/false [usr/share/applications/org.deepin.dde-shell.desktop]
[  996s] N: 
[  996s] N:   The desktop entry specifies a Command that does not match any of the
[  996s] N:   executables shipped in the package.
[  996s] N:   
[  996s] N:   This condition is often caused by a typo, or the desktop file was not
[  996s] N:   updated after the installed path of the executable was modified.
[  996s] N:   
[  996s] N:   Packages should ship executables that are used as commands in desktop
[  996s] N:   files.
[  996s] N: 
[  996s] N:   Visibility: warning
[  996s] N:   Show-Always: no
[  996s] N:   Check: menu-format
[  996s] N: 
[  996s] N:
[  996s] W: dde-shell: link-to-shared-library-in-wrong-package usr/lib/aarch64-linux-gnu/libds-notification-shared.so.2.0.61 [usr/lib/aarch64-linux-gnu/libds-notification-shared.so]
[  996s] N: 
[  996s] N:   Although this package is not a "-dev" package, it installs a
[  996s] N:   "libsomething.so" symbolic link referencing the corresponding shared
[  996s] N:   library. When the link doesn't include the version number, it is used by
[  996s] N:   the linker when other programs are built against this shared library.
[  996s] N:   
[  996s] N:   Shared libraries are supposed to place such symbolic links in their
[  996s] N:   respective "-dev" packages, so it is a bug to include it with the main
[  996s] N:   library package.
[  996s] N:   
[  996s] N:   However, if this is a small package which includes the runtime and the
[  996s] N:   development libraries, this is not a bug. In the latter case, please
[  996s] N:   override this warning.
[  996s] N: 
[  996s] N:   Please refer to Development files (Section 8.4) in the Debian Policy
[  996s] N:   Manual for details.
[  996s] N: 
[  996s] N:   Visibility: warning
[  996s] N:   Show-Always: no
[  996s] N:   Check: libraries/shared/links
[  996s] N:   Renamed from: non-dev-pkg-with-shlib-symlink
[  996s] N: 
[  996s] N:
[  996s] W: dde-shell: no-manual-page [usr/bin/dde-shell]
[  996s] N: 
[  996s] N:   Each binary in /usr/bin, /usr/sbin, /bin, /sbin or /usr/games should have
[  996s] N:   a manual page
[  996s] N:   
[  996s] N:   Note that though the man program has the capability to check for several
[  996s] N:   program names in the NAMES section, each of these programs should have its
[  996s] N:   own manual page (a symbolic link to the appropriate manual page is
[  996s] N:   sufficient) because other manual page viewers such as xman or tkman don't
[  996s] N:   support this.
[  996s] N:   
[  996s] N:   If the name of the manual page differs from the binary by case, man may be
[  996s] N:   able to find it anyway; however, it is still best practice to match the
[  996s] N:   exact capitalization of the executable in the manual page.
[  996s] N:   
[  996s] N:   If the manual pages are provided by another package on which this package
[  996s] N:   depends, Lintian may not be able to determine that manual pages are
[  996s] N:   available. In this case, after confirming that all binaries do have manual
[  996s] N:   pages after this package and its dependencies are installed, please add a
[  996s] N:   Lintian override.
[  996s] N: 
[  996s] N:   Please refer to Manual pages (Section 12.1) in the Debian Policy Manual
[  996s] N:   for details.
[  996s] N: 
[  996s] N:   Visibility: warning
[  996s] N:   Show-Always: no
[  996s] N:   Check: documentation/manual
[  996s] N:   Renamed from: binary-without-manpage
[  996s] N: 
[  996s] N:
[  996s] W: dde-shell source: no-nmu-in-changelog [debian/changelog:1]
[  996s] N: 
[  996s] N:   When you NMU a package, that fact should be mentioned on the first line in
[  996s] N:   the changelog entry. Use the words "NMU" or "Non-maintainer upload" (case
[  996s] N:   insensitive).
[  996s] N:   
[  996s] N:   Maybe you didn't intend this upload to be a NMU, in that case, please
[  996s] N:   double-check that the most recent entry in the changelog is byte-for-byte
[  996s] N:   identical to the maintainer or one of the uploaders. If this is a local
[  996s] N:   package (not intended for Debian), you can suppress this warning by
[  996s] N:   putting "local" in the version number or "local package" on the first line
[  996s] N:   of the changelog entry.
[  996s] N: 
[  996s] N:   Please refer to Using the DELAYED/ queue (Section 5.11.3) in the Debian
[  996s] N:   Developer's Reference for details.
[  996s] N: 
[  996s] N:   Visibility: warning
[  996s] N:   Show-Always: no
[  996s] N:   Check: nmu
[  996s] N:   Renamed from: changelog-should-mention-nmu
[  996s] N: 
[  996s] N:
[  996s] W: dde-shell: package-name-doesnt-match-sonames libds-notification-shared2
[  996s] N: 
[  996s] N:   The package name of a library package should usually reflect the soname of
[  996s] N:   the included library. The package name can determined from the library
[  996s] N:   file name with the following code snippet:
[  996s] N:   
[  996s] N:    $ objdump -p /path/to/libfoo-bar.so.1.2.3 | sed -n -e's/^[[:space:]]*SONAME[[:space:]]*//p' | \
[  996s] N:        sed -r -e's/([0-9])\.so\./\1-/; s/\.so(\.|$)//; y/_/-/; s/(.*)/\L&/'
[  996s] N: 
[  996s] N:   Visibility: warning
[  996s] N:   Show-Always: no
[  996s] N:   Check: libraries/shared/soname
[  996s] N: 
[  996s] N:
[  996s] W: libdde-shell: package-name-doesnt-match-sonames libdde-shell1
[  996s] N:
[  996s] W: libdde-shell-dock: package-name-doesnt-match-sonames libdde-shell-dock1
[  996s] N:
[  996s] W: dde-shell source: source-nmu-has-incorrect-version-number 2.0.61+u023 [debian/changelog:1]
[  996s] N: 
[  996s] N:   A source NMU should have a Debian revision of "-x.x" (or "+nmuX" for a
[  996s] N:   native package). This is to prevent stealing version numbers from the
[  996s] N:   maintainer.
[  996s] N:   
[  996s] N:   Maybe you didn't intend this upload to be a NMU, in that case, please
[  996s] N:   double-check that the most recent entry in the changelog is byte-for-byte
[  996s] N:   identical to the maintainer or one of the uploaders. If this is a local
[  996s] N:   package (not intended for Debian), you can suppress this warning by
[  996s] N:   putting "local" in the version number or "local package" on the first line
[  996s] N:   of the changelog entry.
[  996s] N: 
[  996s] N:   Please refer to NMUs and debian/changelog (Section 5.11.2) in the Debian
[  996s] N:   Developer's Reference for details.
[  996s] N: 
[  996s] N:   Visibility: warning
[  996s] N:   Show-Always: no
[  996s] N:   Check: nmu
[  996s] N: 
[  996s] N:
[  996s] W: dde-shell: unknown-section DDE
[  996s] N: 
[  996s] N:   The "Section:" field in this package's control file is not one of the
[  996s] N:   sections in use on the ftp archive. Valid sections are currently admin,
[  996s] N:   comm, cli-mono, database, debug, devel, doc, editors, electronics,
[  996s] N:   embedded, fonts, games, gnome, gnu-r, gnustep, graphics, hamradio,
[  996s] N:   haskell, httpd, interpreters, java, javascript, kde, libdevel, libs, lisp,
[  996s] N:   localization, kernel, mail, math, misc, net, news, ocaml, oldlibs,
[  996s] N:   otherosfs, perl, php, python, ruby, rust, science, shells, sound, tex,
[  996s] N:   text, utils, vcs, video, web, x11, xfce, zope.
[  996s] N:   
[  996s] N:   The section name should be preceded by either "contrib/", "non-free/" or
[  996s] N:   "non-free-firmware/" if the package is in the according archive area.
[  996s] N: 
[  996s] N:   Please refer to Sections (Section 2.4) in the Debian Policy Manual for
[  996s] N:   details.
[  996s] N: 
[  996s] N:   Visibility: warning
[  996s] N:   Show-Always: no
[  996s] N:   Check: fields/section
[  996s] N: 
[  996s] N:
[  996s] W: dde-shell-example: unknown-section DDE
[  996s] N:
[  996s] W: libdde-shell: unknown-section DDE
[  996s] N:
[  996s] W: libdde-shell-dev: unknown-section DDE
[  996s] N:
[  996s] W: libdde-shell-dock: unknown-section DDE
[  996s] N:
[  996s] W: libdde-shell-dock-dev: unknown-section DDE
[  997s] Warning: mkbaselibs missing in build root, skipping baselibs
deepin_develop / x86_64 (Lintian 警告: 15 条)
[  471s] W: dde-shell: desktop-command-not-in-package bin/false [usr/share/applications/org.deepin.dde-shell.desktop]
[  471s] N: 
[  471s] N:   The desktop entry specifies a Command that does not match any of the
[  471s] N:   executables shipped in the package.
[  471s] N:   
[  471s] N:   This condition is often caused by a typo, or the desktop file was not
[  471s] N:   updated after the installed path of the executable was modified.
[  471s] N:   
[  471s] N:   Packages should ship executables that are used as commands in desktop
[  471s] N:   files.
[  471s] N: 
[  471s] N:   Visibility: warning
[  471s] N:   Show-Always: no
[  471s] N:   Check: menu-format
[  471s] N: 
[  471s] N:
[  471s] W: dde-shell: link-to-shared-library-in-wrong-package usr/lib/x86_64-linux-gnu/libds-notification-shared.so.2.0.61 [usr/lib/x86_64-linux-gnu/libds-notification-shared.so]
[  471s] N: 
[  471s] N:   Although this package is not a "-dev" package, it installs a
[  471s] N:   "libsomething.so" symbolic link referencing the corresponding shared
[  471s] N:   library. When the link doesn't include the version number, it is used by
[  471s] N:   the linker when other programs are built against this shared library.
[  471s] N:   
[  471s] N:   Shared libraries are supposed to place such symbolic links in their
[  471s] N:   respective "-dev" packages, so it is a bug to include it with the main
[  471s] N:   library package.
[  471s] N:   
[  471s] N:   However, if this is a small package which includes the runtime and the
[  471s] N:   development libraries, this is not a bug. In the latter case, please
[  471s] N:   override this warning.
[  471s] N: 
[  471s] N:   Please refer to Development files (Section 8.4) in the Debian Policy
[  471s] N:   Manual for details.
[  471s] N: 
[  471s] N:   Visibility: warning
[  471s] N:   Show-Always: no
[  471s] N:   Check: libraries/shared/links
[  471s] N:   Renamed from: non-dev-pkg-with-shlib-symlink
[  471s] N: 
[  471s] N:
[  471s] W: dde-shell: no-manual-page [usr/bin/dde-shell]
[  471s] N: 
[  471s] N:   Each binary in /usr/bin, /usr/sbin, /bin, /sbin or /usr/games should have
[  471s] N:   a manual page
[  471s] N:   
[  471s] N:   Note that though the man program has the capability to check for several
[  471s] N:   program names in the NAMES section, each of these programs should have its
[  471s] N:   own manual page (a symbolic link to the appropriate manual page is
[  471s] N:   sufficient) because other manual page viewers such as xman or tkman don't
[  471s] N:   support this.
[  471s] N:   
[  471s] N:   If the name of the manual page differs from the binary by case, man may be
[  471s] N:   able to find it anyway; however, it is still best practice to match the
[  471s] N:   exact capitalization of the executable in the manual page.
[  471s] N:   
[  471s] N:   If the manual pages are provided by another package on which this package
[  471s] N:   depends, Lintian may not be able to determine that manual pages are
[  471s] N:   available. In this case, after confirming that all binaries do have manual
[  471s] N:   pages after this package and its dependencies are installed, please add a
[  471s] N:   Lintian override.
[  471s] N: 
[  471s] N:   Please refer to Manual pages (Section 12.1) in the Debian Policy Manual
[  471s] N:   for details.
[  471s] N: 
[  471s] N:   Visibility: warning
[  471s] N:   Show-Always: no
[  471s] N:   Check: documentation/manual
[  471s] N:   Renamed from: binary-without-manpage
[  471s] N: 
[  471s] N:
[  471s] W: dde-shell source: no-nmu-in-changelog [debian/changelog:1]
[  471s] N: 
[  471s] N:   When you NMU a package, that fact should be mentioned on the first line in
[  471s] N:   the changelog entry. Use the words "NMU" or "Non-maintainer upload" (case
[  471s] N:   insensitive).
[  471s] N:   
[  471s] N:   Maybe you didn't intend this upload to be a NMU, in that case, please
[  471s] N:   double-check that the most recent entry in the changelog is byte-for-byte
[  471s] N:   identical to the maintainer or one of the uploaders. If this is a local
[  471s] N:   package (not intended for Debian), you can suppress this warning by
[  471s] N:   putting "local" in the version number or "local package" on the first line
[  471s] N:   of the changelog entry.
[  471s] N: 
[  471s] N:   Please refer to Using the DELAYED/ queue (Section 5.11.3) in the Debian
[  471s] N:   Developer's Reference for details.
[  471s] N: 
[  471s] N:   Visibility: warning
[  471s] N:   Show-Always: no
[  471s] N:   Check: nmu
[  471s] N:   Renamed from: changelog-should-mention-nmu
[  471s] N: 
[  471s] N:
[  471s] W: dde-shell: package-name-doesnt-match-sonames libds-notification-shared2
[  471s] N: 
[  471s] N:   The package name of a library package should usually reflect the soname of
[  471s] N:   the included library. The package name can determined from the library
[  471s] N:   file name with the following code snippet:
[  471s] N:   
[  471s] N:    $ objdump -p /path/to/libfoo-bar.so.1.2.3 | sed -n -e's/^[[:space:]]*SONAME[[:space:]]*//p' | \
[  471s] N:        sed -r -e's/([0-9])\.so\./\1-/; s/\.so(\.|$)//; y/_/-/; s/(.*)/\L&/'
[  471s] N: 
[  471s] N:   Visibility: warning
[  471s] N:   Show-Always: no
[  471s] N:   Check: libraries/shared/soname
[  471s] N: 
[  471s] N:
[  471s] W: libdde-shell: package-name-doesnt-match-sonames libdde-shell1
[  471s] N:
[  471s] W: libdde-shell-dock: package-name-doesnt-match-sonames libdde-shell-dock1
[  471s] N:
[  471s] W: dde-shell source: source-nmu-has-incorrect-version-number 2.0.61+u023 [debian/changelog:1]
[  471s] N: 
[  471s] N:   A source NMU should have a Debian revision of "-x.x" (or "+nmuX" for a
[  471s] N:   native package). This is to prevent stealing version numbers from the
[  471s] N:   maintainer.
[  471s] N:   
[  471s] N:   Maybe you didn't intend this upload to be a NMU, in that case, please
[  471s] N:   double-check that the most recent entry in the changelog is byte-for-byte
[  471s] N:   identical to the maintainer or one of the uploaders. If this is a local
[  471s] N:   package (not intended for Debian), you can suppress this warning by
[  471s] N:   putting "local" in the version number or "local package" on the first line
[  471s] N:   of the changelog entry.
[  471s] N: 
[  471s] N:   Please refer to NMUs and debian/changelog (Section 5.11.2) in the Debian
[  471s] N:   Developer's Reference for details.
[  471s] N: 
[  471s] N:   Visibility: warning
[  471s] N:   Show-Always: no
[  471s] N:   Check: nmu
[  471s] N: 
[  471s] N:
[  471s] W: dde-shell: unknown-section DDE
[  471s] N: 
[  471s] N:   The "Section:" field in this package's control file is not one of the
[  471s] N:   sections in use on the ftp archive. Valid sections are currently admin,
[  471s] N:   comm, cli-mono, database, debug, devel, doc, editors, electronics,
[  471s] N:   embedded, fonts, games, gnome, gnu-r, gnustep, graphics, hamradio,
[  471s] N:   haskell, httpd, interpreters, java, javascript, kde, libdevel, libs, lisp,
[  471s] N:   localization, kernel, mail, math, misc, net, news, ocaml, oldlibs,
[  471s] N:   otherosfs, perl, php, python, ruby, rust, science, shells, sound, tex,
[  471s] N:   text, utils, vcs, video, web, x11, xfce, zope.
[  471s] N:   
[  471s] N:   The section name should be preceded by either "contrib/", "non-free/" or
[  471s] N:   "non-free-firmware/" if the package is in the according archive area.
[  471s] N: 
[  471s] N:   Please refer to Sections (Section 2.4) in the Debian Policy Manual for
[  471s] N:   details.
[  471s] N: 
[  471s] N:   Visibility: warning
[  471s] N:   Show-Always: no
[  471s] N:   Check: fields/section
[  471s] N: 
[  471s] N:
[  471s] W: dde-shell-example: unknown-section DDE
[  471s] N:
[  471s] W: libdde-shell: unknown-section DDE
[  471s] N:
[  471s] W: libdde-shell-dev: unknown-section DDE
[  471s] N:
[  471s] W: libdde-shell-dock: unknown-section DDE
[  471s] N:
[  471s] W: libdde-shell-dock-dev: unknown-section DDE
[  471s] Warning: mkbaselibs missing in build root, skipping baselibs

1. Root cause: the overflow popup DropArea in TaskOverflowButton.qml
   onEntered handler called drag.accept(Qt.MoveAction), which shows a
   move cursor. The expected behavior is a forbidden (no-drop) cursor
   when dragging overflow-popup items over the overflow area
2. Fix: change drag.accept(Qt.MoveAction) to drag.accept(Qt.IgnoreAction)
   in onEntered so the cursor shows a forbidden icon. onDropped for
   overflow-popup source is retained but won't fire since the drag is
   rejected at enter time — this is the intended behavior
3. Impact: only affects cursor display during drag-enter into the
   overflow popup for overflow-popup drag source; other drag sources
   and drop behaviors are unchanged

Log: overflow popup now shows forbidden cursor instead of move cursor
when dragging items inside it

Influence:
1. Drag an app icon inside the overflow popup and verify the cursor
   shows a forbidden (no-drop) icon instead of a move cursor
2. Drag an app icon from the taskbar into the overflow popup and verify
   the cursor and drop behavior are unchanged
3. Drag an app icon out of the overflow popup and verify residence is
   preserved

fix: 修复溢出区域拖拽时光标应显示为禁止状态

1. 根因:溢出弹窗 DropArea 的 onEntered 调用 drag.accept(Qt.MoveAction),
   光标显示为移动光标,但预期行为为禁止光标(不允许放置)
2. 方案:将 onEntered 中的 drag.accept(Qt.MoveAction) 改为
   drag.accept(Qt.IgnoreAction),使光标显示禁止图标。onDropped 中
   overflow-popup 源的处理保留但因拖拽在进入时被拒绝而不再触发,
   符合预期行为
3. 影响:仅影响溢出弹窗内 overflow-popup 拖拽源进入时的光标显示,
   其他拖拽源和拖放行为不变

Log: 溢出区域内拖拽图标时光标从移动状态改为禁止状态

Influence:
1. 在溢出弹窗内拖拽应用图标,确认光标显示为禁止图标而非移动光标
2. 从任务栏拖拽应用图标到溢出弹窗,确认光标和拖放行为无变化
3. 从溢出弹窗拖出应用图标,确认驻留属性保持不变

PMS: BUG-384773
@mhduiy
mhduiy force-pushed the agent/bugfix/384773 branch from 6d54177 to afdbf2c Compare December 1, 2026 03:20
@deepin-bot

deepin-bot Bot commented Dec 2, 2026

Copy link
Copy Markdown

TAG Bot

New tag: 6.2.2
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #1915

@deepin-bot

deepin-bot Bot commented Dec 2, 2026

Copy link
Copy Markdown

TAG Bot

New tag: 6.2.2
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #1919

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants